import {createSSRApp} from 'vue';
import App from './App.vue';
import {createPinia} from 'pinia';
import "@/assets/style/main.scss";
import persist from 'pinia-plugin-persistedstate'
import AppForm from '@/components/AppForm.vue';

export function createApp() {
    const app = createSSRApp(App);
    const pinia = createPinia();
    pinia.use(persist); // 使用持久化插件
    app.use(pinia);
    app.component('AppForm', AppForm)

    return {
        app,
        pinia
    };
}
